package com.lin.cms.domain;

import java.io.Serializable;

public class GuestbookExt implements Serializable {

	private static final long serialVersionUID = 1L;

	private int guestbookId;

	private String title;

	private String content;

	private String reply;

	private String email;

	private String phone;

	private String qq;

	public GuestbookExt() {
	}

	public int getGuestbookId() {
		return guestbookId;
	}

	public void setGuestbookId(int guestbookId) {
		this.guestbookId = guestbookId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getReply() {
		return reply;
	}

	public void setReply(String reply) {
		this.reply = reply;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + guestbookId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final GuestbookExt other = (GuestbookExt) obj;
		if (guestbookId != other.guestbookId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"guestbookId=" + "'" + guestbookId + "'" + 
			")";
	}
	
}
